//判断浏览器还是webview环境
import httpServer from './httpServer'
import webviewServer from './webviewServer'
let currentServer = null
try{
    
    if((window.chrome&&window.chrome.webview)||(window.qt&&window.sendObject)){
        console.log('kkk','webviewServer')
        currentServer = webviewServer
    }else{
        console.log('kkk','httpServer')
        currentServer = httpServer
    }
}catch(e){
    alert(''+e)
}

export default currentServer 
